import request from '@/utils/request'
// 查询人工填报的能源分类
export const gettianbaofenleilistapi = () => request.get('ecm-microservice-biz/ecm/energy/report/getEnergyClassify')
// 查询人工填报的能源类型
export const gettianbaoleixinglistapi = () => request.get('ecm-microservice-biz/ecm/energy/report/getEnergyType')
// 查询分页列表信息
export const gettianbaolistapi = params => request.get('ecm-microservice-biz/ecm/energy/report/page', { params })
// 模板新增
export const addtianbaomubanapi = data => request.post('ecm-microservice-biz/ecm/energy/report/templateAdd', data)
// 修改
export const updatedtianbaoapi = data => request.post('ecm-microservice-biz/ecm/energy/report/update', data)

// 能源价格信息配置
// 查询能源类型/介质列表
export const gettypeandjiezhilistapi = () => request.get('ecm-microservice-biz/ecm/price/scheme/getEnergyTypeMediumList')
// 查询分页列表信息
export const getjiageweihulistapi = params => request.get('ecm-microservice-biz/ecm/price/scheme/page', { params })
// 新增价格配置
export const addjiagepeizhiapi = data => request.post('ecm-microservice-biz/ecm/price/scheme/add', data)
// 删除单价配置
export const deldanjiapeizhiapi = data => request.post(`ecm-microservice-biz/ecm/price/scheme/delete?id=${data.id}`)
// 修改单价配置
export const putdanjiapeizhiapi=data=>request.post('ecm-microservice-biz/ecm/price/scheme/update',data)